package myutil

import "fmt"

func SayHello() {
	fmt.Println("say Hello的方法调用")
}

/**
封装两个数相加和相减的方法
方法有两个返回值，分别是两个数的和与差
*/
func SumAndSub(a int, b int) (int, int) {
	fmt.Println("形参列表:a:", a, "b:", b)

	sum := a + b
	sub := a - b
	return sum, sub
}

func SumAndSub2(a int, b int) (sum int, sub int) {
	fmt.Println("形参列表:a:", a, "b:", b)

	sum = a + b
	sub = a - b
	return sum, sub
}
